<%@ page language="java" import="java.util.*,com.xw.util.Const"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html>
<html lang="en">
<head>
<base href="<%=basePath%>">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>处方单详情</title>
<link rel="stylesheet" href="static/css/common.css">
<link rel="stylesheet" href="static/css/bootstrap.css">
<link rel="stylesheet" href="static/css/font-awesome-4.7.css">
<link rel="stylesheet" href="static/css/hzxx.css">
<script src="static/js/jquery-1.11.3.js"></script>
<script src="static/js/bootstrap.js"></script>
<!--提示框-->
<script type="text/javascript" src="static/js/jquery.tips.js"></script>
<script type="text/javascript">
	$(top.hangge());
</script>
<style>
.box>.name,.box>.age,.box>.phone {
	width: 60%;
	height: 38px;
	line-height: 38px;
}

.r7 {
	margin-top: 20px;
	margin-bottom: 20px;
}
.table tr,
.table th {
	text-align:center;
}
.table-responsive {
	margin-top:20px;
}
.main {
	margin-top:0;
}
</style>
</head>

<body>
	<div class="container-fluid">
		<div class="row" id="row">
			<!-- 患者主要信息展示页面 -->
			<div class="col-sm-12 col-md-12 col-lg-12 main ">
				<form action="">
					<!-- 患者信息 -->
					<div class="r1">
						<div class="col-sm-2 col-md-2 col-lg-2 lf left ">
							<span>姓名:</span>
						</div>
						<div class="col-sm-10 col-md-10 col-lg-10 lf right">
							<!-- 姓名输入框 -->
							<div class="col-sm-6 col-md-6 col-lg-6 box">
								<span class="name" readonly="readonly">${pd.name }</span>
							</div>
						</div>
					</div>
					<!-- 联系方式 -->
					<div class="r2">
						<div class="col-sm-2 col-md-2 col-lg-2 lf left ">
							<span>联系电话:</span>
						</div>
						<div class="col-sm-10 col-md-10 col-lg-10 lf right">
							<!-- 联系方式 -->
							<div class="col-sm-6 col-md-6 col-lg-6 box">
								<span class="phone" readonly="readonly">${pd.phone }</span>
							</div>
						</div>
					</div>
					<!-- 医生主诉 -->
					<div class="r7">
						<div class="col-sm-2 col-md-2 col-lg-2 lf left">
							<span>主诉/ <br>现病史:</span>
						</div>
						<div class="col-sm-10 col-md-10 col-lg-10 lf boxs right">
							<textarea name="" id="" cols="30" rows="10" class="textarea"
								readonly="readonly">${pd.xbs }</textarea>
						</div>
					</div>
					<!-- 医生诊断 -->
					<div class="r7">
						<div class="col-sm-2 col-md-2 col-lg-2 lf left">
							<span>诊断:</span>
						</div>
						<div class="col-sm-10 col-md-10 col-lg-10 lf right">
							<textarea name="" id="" cols="30" rows="10" class="textarea"
								readonly="readonly">${pd.zd }</textarea>
						</div>
					</div>
					<!-- 开具药品 -->
					<div class="r7">
						<div class="col-sm-2 col-md-2 col-lg-2 lf left">
							<span>开具药品:</span>
						</div>
						<div class="col-sm-12 col-md-12 col-lg-12 lf right table-responsive">
							<table class="table table-bordered table-condensed table-hover">
								<tr>
									<th><label><input type="checkbox" id="zcheckbox" /><span
											class="lbl"></span>
									</label></th>
									<th>序号</th>
									<th>药品名称</th>
									<th>用法</th>
									<th>用量</th>
									<th>单价</th>
									<th>单位</th>
									<th>总价</th>
								</tr>
								<c:choose>
									<c:when test="${not empty ypList}">
										<c:forEach items="${ypList}" var="yp" varStatus="vs">
											<tr>
												<td><label><input
														type='checkbox' disabled="disabled" /><span class="lbl"></span>
												</label></td>
												<td>${vs.index+1}</td>
												<td>${yp.ypname }</td>
												<td>${yp.ypUsage }</td>
												<td>${yp.number }</td>
												<td>${yp.price }</td>
												<td>${yp.ypUnit }</td>
												<td>${yp.totalprice }</td>
											</tr>
										</c:forEach>
									</c:when>
								</c:choose>
							</table>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</body>

</html>
